package com.kzw.oa.comm.sorter;

import java.util.Comparator;
import java.util.Map;

/**
 * 分值比较器
 * */
public class ScoreSorter implements Comparator<Map<String, Object>> {

	@Override
	public int compare(Map<String, Object> o1, Map<String, Object> o2) {
		Double score1 = Double.parseDouble(o1.get("score")+"");
		Double score2 = Double.parseDouble(o2.get("score")+"");
		return score2.compareTo(score1);
	}

}
